package com.wudi.estate.bean.admin;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 丰哥
 * 2022/10/12
 *
 * 角色实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {
    @TableId(value = "id", type = IdType.AUTO)
    private long id; //角色id
    private String name; //角色名称
    private long aid;//管理员编号
    private long pid;//权限编号
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer state;

}
